from info import creat_app,db,models
from flask_script import  Manager
from flask_migrate import Migrate, MigrateCommand


#
app = creat_app("dev")
print(app)

#创建manage 对象
manager = Manager(app)

#使用Migreate管理app。db
Migrate(app,db)

#给manager 添加一条操作命令
manager.add_command('db',MigrateCommand)




if __name__ == '__main__':
    manager.run()